def getMenuOption(debug = False):
	if debug:
		print "getMenuOption Function"
	validInput = False
	while not validInput:
		option = raw_input("> ")
		if option == "1":
			validInput = True
		elif option == "2":
			validInput = True
		elif option == "3":
			validInput = True
		elif (option.lower() == "exit" or
		      option.lower() == "e" or
		      option.lower() == "x" or
		      option.lower() == "quit" or
		      option.lower() == "q"):
				  validInput = True
				  option = "exit"
		else:
			print "Please selecct 1, 2, or 3... Or my BAT army will come for you while you sleep..."
	return option

def getWord(prompt, debug = False):
	if debug:
		print "getWord Function", prompt
	validInput = False
	while not validInput:
		option = raw_input(prompt)	
		validInput = True
		if option == "":
			print "Please type a word"
			validInput = False
		elif isSwear(option, debug):
			print "Ya DUMBADINGIS! Don't type bad words or I'll send my spider and BAT army to come and eliminate your existance from the face that is our precious EARTH!"
			validInput = False
	return option

def getNumber(prompt, debug = False):
	if debug:
		print "getWord Function", prompt
	validInput = False
	numbers = "0123456789."
	while not validInput:
		option = raw_input(prompt)	
		validInput = True
		for character in option:
			if not(character in numbers):
				validInput = False
		if not validInput:
			print "Type only digits you IDIOT! Y'know, the stuff used for MATH? What's WRONG with you?!"
	return option
		
		
def isSwear(word, debug = False):
	if debug:
		print "isSwear Function", word
	#Spooner said it's fine to have list in both directions
	swears = ["dumb", "you piece of shit", "hoe", "hoes", "you little shit dick",
			 "stupid", "you fucking piece of shit", "orgy", "shit dick", "racistrain",
			 "shit", "you fucking piece of shit-bitch", "buttfuck", "butt fuck",
			 "bitch", "heck", "assbitch", "assbutt", "fatbutt", "fat butt",
			 "fuck", "to hell with you you piece of shit", "to hell with you",
			 "fucking", "piece of crap you piece of shit", "go to hell", "racist-train",
			 "bitching", "jerk bastard", "pissfuck", "cumming", "cock", "fucking fucker",
			 "dastard", "you jerk bastard", "son of a god damn titty bitch mother fucker",
			 "bastard", "fuck off", "vajayjay johnson", "blowjob", "blow job",
			 "bastards", "go screw yourself", "hoes and tricks", "shitstorm", 
			 "dastards", "asshat", "dick", "pussy", "nuds", "hells", "fucking fuck",
			 "piss", "hecking", "dicking", "nude", "you are an ass", "fuck me",
			 "piss-poor", "piss-poor choices about life", "vag", "shit storm"
			 "son of a bitch", "slut", "suck", "Vjayjay", "shut your butt", "douchebag",
			 "hell", "buttlet", "whore", "suck it", "you need to shut your asshole",
			 "fuck you you piece of shit", "ass", "suck a dick", "douche bitch",
			 "fag", "asses", "shitting", "pissing", "penis", "fucking fucker fuck",
			 "faggot", "asshole", "shat", "frikkafrack", "penises", "douchebitch",
			 "motherfucker", "motherfucking asshole", "vagina", "pissfart",
			 "mother fucker", "mother fucking asshole", "vaginas", "douche",
			 "cunt", "you fucking dick", "you son of a bitch", "piss farts",
			 "sonofabitch", "you piece of crap", "crap", "vajayjay", "douche bag",
			 "bitch please", "bitchplease", "go fuck yourself", "piss fart",
			 "bitches aint nothin but hoes and tricks", "bitches aint nothing but hoes and tricks", "retard", "pissfart",
			 "demented", "masturbate", "masturbating", "goin down on ladies",
			 "masturbation", "what the fuck", "lemonshit", "cum", "dammit",
			 "prostate", "stimulation", "stimulate", "fisting", "youre such a dick",
			 "Miley Cyrus", "twerking", "twerk", "twerk dat ass", "go take a piss",
			 "I WANT TO BE MANHANDLED", "dumb-shit", "dumbshit", "dumb shit",
			 "thrusting", "thrust", "butt hole", "butthole", "bullshit", "BS", 
			 "bull shit", "big ass", "bigass", "pooed", "poo", "pee", "pooing",
			 "damn", "damnit" "damn it", "son of a goddamn titty bitch motherfucker",
			 "mother humper", "motherhumper", "tit", "titty", "tits", "YOU ARE A MOTHERHUMPER",
			 "this is bullshit", "bull load of bull", "bull load of bullshit", "this is bull shit",
			 "bull load of bull shit", "bull ass bull", "bullassbull", "bull assbull",
			 "bullass bull", "douche-bitch", "douchebitch", "bloody hell", "racist train",
			 "fuck the police", "fuck the popo", "rape", "rape", "raper", "rapist",]
	if word.lower() in swears:
		return True
	else:
		return False
